package com.work.lxykeeper.module.homepage;

import android.view.View;
import android.widget.TextView;

import com.work.lxykeeper.R;
import com.work.lxykeeper.base.BaseActivity;
import com.work.lxykeeper.databinding.ActivityHomepageScanresultBinding;

/**
 * author: Wangzhan
 * date :2018/7/27 0027 16:07
 * version:2.0.0
 * description:
 */

public class ScanResultActivity extends BaseActivity {
    private String result;
    private TextView tv_result;
    private ActivityHomepageScanresultBinding binding;

    @Override
    protected View getLayoutView() {
        binding= ActivityHomepageScanresultBinding.inflate(getLayoutInflater());
        return null;
    }

    @Override
    protected void initView() {
        mTitleBar.titleMiddle.setText("扫描结果");
        tv_result = findViewById(R.id.tv_result);

    }

    @Override
    protected void initData() {
        result = getIntent().getStringExtra("result");
        String[] arr = result.split("=");
        if(arr!=null){
            tv_result.setText(arr[arr.length - 1]);
        }
    }
}
